import 'package:dingtalk/core/common/message_type.dart';
import 'package:flutter/material.dart';

class THChatModel {
  THChatModel(
      {@required this.userId,
      @required this.userName,
      @required this.message,
      @required this.isSend,
      this.type = THMessageType.text,
      @required this.time});

  /// 用户名称
  String userName;

  /// 用户Id
  String userId;

  /// 消息体
  String message;

  /// 是否是发送者 0 发送者 1 接收者
  int isSend = 0;

  /// chat type
  int type;

  /// 时间
  num time;
}
